<?php /* Smarty version 2.6.26, created on 2013-08-26 04:40:53
         compiled from cart_checkout.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'cart_checkout.tpl', 11, false),array('modifier', 'thumb', 'cart_checkout.tpl', 38, false),array('modifier', 'number_format', 'cart_checkout.tpl', 43, false),)), $this); ?>
<section class="row clearfix cart-checkout">
	<div class="post seven pull-left">
		<form method="post">
			<table width="100%">
				<tr>
					<td width="80">Email:</td>
					<td><input type="text" class="text" name="email" value="<?php echo $this->_tpl_vars['u']['user_email']; ?>
" /></td>
				</tr>
				<tr>
					<td>Họ tên:</td>
					<td><input type="text" class="text" name="fullname" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['u']['user_fullname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
				</tr>
				<tr>
					<td>Điện thoại:</td>
					<td><input type="text" class="text" name="phone" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['u']['user_phone'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
				</tr>
				<tr>
					<td>Địa chỉ:</td>
					<td><input type="text" class="text" name="address" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['u']['user_address'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
				</tr>
				<tr>
					<td>Ghi chú:</td>
					<td><textarea name="note"></textarea></td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: right;"><input type="submit" class="btn" value="Gửi đơn hàng" /></td>
				</tr>
			</table>
		</form>
	</div>
	
	<div class="post five pull-right">
		<div class="cartList">
			<h3 class="title">Giỏ hàng của bạn</h3>
			<?php $_from = $this->_tpl_vars['cart']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['prd_id'] => $this->_tpl_vars['c']):
?>
			<div class="cart-item clearfix">
				<div class="cart-thumb three pull-left">
					<img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'w70') : smarty_modifier_thumb($_tmp, 'w70')); ?>
" />
				</div>
				
				<div class="cart-info nine pull-right">
					<h2 class="title"><?php echo $this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_title']; ?>
</h2>
					<div><?php echo ((is_array($_tmp=$this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_price'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
 VNĐ</div>
					<div>Số lượng: <?php echo $this->_tpl_vars['c']['quantity']; ?>
 &nbsp;-&nbsp;Kích thước: <?php echo $this->_tpl_vars['aSize'][$this->_tpl_vars['c']['size_id']]; ?>
</div>
					<div>Màu sắc: <?php echo $this->_tpl_vars['aColor'][$this->_tpl_vars['c']['color_id']]['color_title']; ?>
</div>
				</div>
			</div>
			<?php endforeach; endif; unset($_from); ?>
			<?php if ($this->_tpl_vars['total'] > 0): ?>
			<div class="cart-item clearfix cartTotal">
				<div class="cart-thumb six pull-left">Tổng tiền</div>
				<div class="cart-info six pull-right"><?php echo ((is_array($_tmp=$this->_tpl_vars['total'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
 VNĐ</div>
			</div>
			<?php endif; ?>
		</div>
	
	</div>
</section>